package com.yjy;

import com.yjy.mq.OrderProducer;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
public class OrderProduceTest {

    @Autowired
    private OrderProducer orderProducer;

    @Test
    public void testOrder() {
        String ss = "";
        orderProducer.sendMsgOrder("tag1--11", "tag1");
        orderProducer.sendMsgOrder("tag1--12", "tag1");
        orderProducer.sendMsgOrder("tag1--13", "tag1");
        orderProducer.sendMsgOrder("tag1--14", "tag1");
        orderProducer.sendMsgOrder("tag2--21", "tag2");
        orderProducer.sendMsgOrder("tag2--22", "tag2");
        orderProducer.sendMsgOrder("tag2--23", "tag2");
    }
}
